]> dgit.raspbian.org Git - gnome-shell.git/commit
background: don't load the same image more than once concurrently
authorRay Strode <rstrode@redhat.com>
Mon, 25 Mar 2013 19:03:48 +0000 (15:03 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 26 Mar 2013 21:02:05 +0000 (17:02 -0400)
commitbed3bb45f7cb55ed6a2d88fd54f29d9ed502e901
treeed9abd752115a1a15404356822754eb7b9f3fbe4
parent18d850d7d681ac011b45ea04fefb8a7e96db42b5
background: don't load the same image more than once concurrently

If a background gets requested from the cache while it's still
being loaded from an earlier call, then there will be two concurrent
loads of the same file.

That concurrency is mitigates the effectiveness of the cache and
also causes leaks.

This commit consolidates file loads so that concurrency doesn't
happen.

https://bugzilla.gnome.org/show_bug.cgi?id=696157
js/ui/background.js